package com.crosbymichael.process
{
	import flash.events.Event;

	/**
	 * Event for the PackageNativeInstaller class.
	 * Event for complete and errors. 
	 *  
	 * @author Michael Crosby crosbymichael.com
	 * 
	 */	
	public class PackageEvent extends Event
	{
		public static const COMPLETE:String = "complete";
		public static const ERROR:String = "error";
		public static const FILEERROR:String = "file_error";
		public static const NATIVEPROCESSERROR:String = "native_error";
		public static const NATIVEEXIT:String = "native_exit";
		
		/**
		 * Used to pass the error message in the event. 
		 */		
		public var error:String;
		
		/**
		 * The name of the file that is or was being packaged. 
		 */		
		public var filename:String;
		
		public function PackageEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);
		}
	}
}